﻿using FluentNHibernate.Mapping;

namespace TaskKernel.Domain.Nhibernate.Mappings
{
    public class ReminderMap : ClassMap<Reminder>
    {
        public ReminderMap()
        {
            Table("task_Reminders");
            Id(x => x.UID, "GID").GeneratedBy.GuidNative();
            References(x => x.Owner, "AccountGID");
            References(x => x.Task, "TaskGID");
            Map(x => x.DateTime, "DateTime");
            Map(x => x.Note, "Note").Nullable();
        }
    }
}